package com.ktjiaoyu.crm.pojo;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
@TableName("sys_user")
@Data
public class User implements Serializable {
    @TableField("usr_id")
    @TableId(type = IdType.AUTO)
    private Integer usrId;
    private String usrName;
    private String usrPassword;
    private Integer usrRoleId;
    private Integer usrFlag;

    @TableField(exist = false)
    private Role role;

    public User() {

    }
    public User(String usrName, String usrPassword, Role role, Integer usrFlag) {
        this.usrName = usrName;
        this.usrPassword = usrPassword;
//    this.role = role;
        this.usrFlag = usrFlag;
    }
}


